﻿@model Home.Domain.Entities.PArticle
@{
    Layout = null;
}
<script type="text/javascript">
    function delEditArticle() {
        $("#EditArticle").remove();
    }
    function EditArticle()
    {
        $.post("@Url.Action("EditPArticle")", $("#eidtPArticle").serialize(),
            function (data) {
                if (data == 1) {
                    window.location = "@Url.Action("ChaJian")";
                }
            }, "text");
    }
</script>
  <div class="modal" id="EditArticle">
  <div class="modal-header">
    <a class="close" onclick="delEditArticle()">×</a>
    <h3>编辑标题</h3>
  </div>
              <form action="/" id="eidtPArticle" method="post">
                  <input type="hidden" id="editId" name="id" value="@Model.Id" />
  <div class="modal-body">
   <input type="text" name="title" id="edittitle" value="@Model.Title" />
  </div>
              </form>
  <div class="modal-footer">
    <a href="#" class="btn" onclick="delEditArticle()">关闭</a>
    <a href="#" onclick="EditArticle()" class="btn btn-primary">确定</a>
  </div>
</div>
